package com.tdkj.model.website;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.tdkj.model.base.BaseEntity;
import com.tdkj.model.user.BeanAdmin;

/**
 * XnkyWebsiteNotice entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "website_website_notice")
public class BeanWebsiteNotice extends BaseEntity{

	// Fields
	private String title;
	private String content;
	private BeanAdmin admin;
	private String status;
	private Timestamp createtime;

	// Constructors

	/** default constructor */
	public BeanWebsiteNotice() {
	}
	
	@Column(name = "title", length = 40)
	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Column(name = "content", length = 400)
	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "adminid")
	public BeanAdmin getAdmin() {
		return this.admin;
	}

	public void setAdmin(BeanAdmin admin) {
		this.admin = admin;
	}

	@Column(name = "createtime", length = 19)
	public Timestamp getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Timestamp createtime) {
		this.createtime = createtime;
	}

	@Column(name = "status", length = 19)
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	
}